package com.yuqiao.read.design.decorator;

/**
 * 豆浆
 */
public class Soy extends CondimentDecorator{

    Beverage beverage;
    public  Soy(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+"Soy";
    }

    @Override
    public double cost() {
        return 0.15+beverage.cost();
    }
}
